From: Gianfranco Costamagna Date: Mon, 27 Sep 2021 15:53:42 +0000 (+0100) Subject: print-lldb-path X-Git-Tag: archive/raspbian/1%9.0.1-20+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=20df1e6a12c6fdf75097e7fc9be97ba060831209;p=llvm-toolchain-9.git print-lldb-path Last-Update: 2020-01-21 Gbp-Pq: Name print-lldb-path.patch --- diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index e470dfeab..cbd13730d 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -336,10 +336,11 @@ void ScriptInterpreterPython::ComputePythonDirForPosix( llvm::sys::path::remove_filename(path, style); llvm::sys::path::append(path, style, LLDB_PYTHON_RELATIVE_LIBDIR); #else + llvm::sys::path::remove_filename(path, style); llvm::sys::path::append(path, style, - "python" + llvm::Twine(PY_MAJOR_VERSION) + "." + - llvm::Twine(PY_MINOR_VERSION), - "site-packages"); + "python3"/* + llvm::Twine(PY_MAJOR_VERSION) + "." + + llvm::Twine(PY_MINOR_VERSION)*/, + "dist-packages"); #endif }